package com.wsb.wetchat.mapper;

import com.wsb.wetchat.dao.Product;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @author wang shaobo
 * @date 2022/6/30  15:48
 */
@Mapper
public interface ProductMapper {

    public int getProductStock(int id);

    public int decreaseProductStock(int id,int stock,int version);

    public Product queryInfo(@Param(value = "id") int id);


}
